package com.catsic.mod.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.catsic.base.BaseService;
import com.catsic.mod.condition.SendMessageCondition;
import com.catsic.mod.entity.SendMessage;
import com.catsic.mod.form.SendMessageForm;

/**
 * 站内信息发件 service接口
 */
public interface SendMessageService extends BaseService<SendMessage,String>{
	/**
	 * findAll:查询发件箱
	 * @author cs
	 * @param condition
	 * @param pageable
	 * @return
	 */
	public Page<SendMessageForm> findAll(SendMessageCondition condition,Pageable pageable);

	/**
	 * add:写入信息
	 * @author cs
	 * @param SendMessage
	 * @return 
	 */
	public SendMessage add(SendMessageForm sendMessageForm);

	/**
	 * delete:删除
	 * @author cs
	 */
	public void delete(String id);
	
	/**
	 * 通过id查找
	 * @param id
	 * @return
	 */
	public SendMessage findById(String id);
}
